package com.ruoyi.tiktok.domain;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.sql.Date;
import java.util.ArrayList;

import com.ruoyi.common.annotation.Excel;

@Data
public class Task extends BaseEntity {

    private ArrayList<JSONObject> addVideos;

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String taskId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long videoTotalCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String taskStatus;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date taskCreateTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message = "请输入用户名Name")
    private String taskCreateUserName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String taskAddress;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message = "请输入用户名ID")
    private String taskCreateUserId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message = "视频标题")
    private String videoTitle;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message="分发标题不能为空")
    private String title;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message = "视频话题")
    private String videoTopic;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @NotBlank(message = "视频挂载不能为空")
    private String mountStyle;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String destination;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("videoTotalCount", getVideoTotalCount())
                .append("taskStatus", getTaskStatus())
                .append("taskCreateTime", getTaskCreateTime())
                .append("taskCreateUserName", getTaskCreateUserName())
                .append("taskAddress", getTaskAddress())
                .append("taskCreateUserId", getTaskCreateUserId())
                .append("videoTitle", getVideoTitle())
                .append("title", getTitle())
                .append("videoTopic", getVideoTopic())
                .append("mountStyle", getMountStyle())
                .append("destination", getDestination())
                .toString();
    }
}
